<?php
require_once("conn.php");
$cs_name=$_POST['cs_name'];
if($cs_name=="")
{
    echo "<script>alert('分类名不能为空!!'); window.location.href='editclass.php';</script>";
}
else
{
    $sql="update artclass set cs_name='".$cs_name."' where cs_id=".$_POST['cs_id'];
    $result=mysql_query($sql) OR die("<br/>ERROR:<b>".mysql_error()."</b><br/>产生的问题的SQL:".$sql);
    echo "<script>alert('分类修改成功!!'); window.location.href='adminclass.php';</script>";
    
}
?>